package com.yuyou.fn.crm.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.crm.entity.CrmUserDepartment;
import com.yuyou.fn.crm.vo.CrmUserDepartSaveUpdateVo;
import com.yuyou.fn.crm.vo.CrmUserDepartmentDetailVo;
import com.yuyou.fn.platform.vo.SysUserQueryVo;

import java.util.List;

/**
 *
 * CrmUserDepartment 表数据服务层接口
 *
 */
public interface ICrmUserDepartmentService extends ISuperService<CrmUserDepartment,Long> {

    void saveOrUpdateUserDepart(CrmUserDepartSaveUpdateVo crmUserDepartSaveUpdateVo);

    Page<CrmUserDepartmentDetailVo> findUserDepartmentDetailPage(SysUserQueryVo sysUserQueryVo,int pageNo,int pageSize);

    List<CrmUserDepartment> findUserDepartByUserIds(List<Long> userIds);

    CrmUserDepartment findUserDepartByUserId(Long userId);


}